<?php
/**
 * Created by PhpStorm.
 * User: Victor
 * Date: 2018/9/12
 * Time: 14:40
 */

namespace app\manage\controller;


use think\Controller;
use think\Request;
use think\cache\driver\Redis;

class BaseController extends Controller
{
    public $redis;
    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        header('Access-Control-Allow-Origin:*');
        $redisConfig = config('redis');
        $this -> redis = new Redis($redisConfig);
    }
}